package com.it2.service1.service;

import com.it2.service1.api.ConsumerService;

//注解标记此类表示此方法暴露为dubbo接口
//@org.apache.dubbo.config.annotation.Service  //(已不推荐)不是spring的Service,是dubbo的service,推荐写类全名
@org.apache.dubbo.config.annotation.DubboService
public class ConsumerServiceImpl implements ConsumerService {

    //dubbo接口实现
    public String service() {
        System.out.println("我被调用了--");
        return "consumer invoke ";
    }
}
